15. Units in CSS

Units in CSS

Units in CSS

Just to recap, here are the changes you'll make to the webpage:

  1. Set the first div's width to 100px (pixels)
  2. Set the second div's height to 200px (pixels)
  3. Set the third div's margin to 1em
  4. Set the fourth div's font-size to 2em

Workspace

This section contains either a workspace (it can be a Jupyter Notebook workspace or an online code editor work space, etc.) and it cannot be automatically downloaded to be generated here. Please access the classroom with your account and manually download the workspace to your local machine. Note that for some courses, Udacity upload the workspace files onto https://github.com/udacity, so you may be able to download them there.

Workspace Information:

  • Default file path:
  • Workspace type: html-live
  • Opened files (when workspace is loaded): n/a

Solution

Feel free to review the file named Solution.html in the above workspace. For an in-depth look at how we approached this exercise, check out the video below:

Units in CSS